package com.zxl.designpattern.creator.builder;

/**
 * @author zxl
 * @version 1.0
 * @description 卡车建造者
 * @date 2025/6/1 10:02
 */
public class TruckBuilder implements IBuilder{

    private Product product = new Product();

    @Override
    public void buildEngine() {
        product.setEngine("V8 柴油发动机");
    }

    @Override
    public void buildWheels() {
        product.setWheels("6 个轮子");
    }

    @Override
    public void buildBody() {
        product.setBody("卡车车身");
    }

    @Override
    public Product getResult() {
        return product;
    }
}
